package cn.haoma.base.sql;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
public @interface SqlField {
    public SqlType type() default SqlType.DEFAULT;

    enum SqlType {
        PRIMARY_KEY,//主键
        AUTO_INCREMENT_KEY,//自增ID，需要是Integer或Long类型
        DEFAULT,
        IGNORE//不生成对应的Colum
    }
}
